//
//  THViewModel.m
//  MengLiao
//
//  Created by xiuxin on 2022/7/15.
//  Copyright © 2022 BaseBusiness. All rights reserved.
//

#import "THViewModel.h"

@interface THViewModel ()


@end

@implementation THViewModel

+ (instancetype)allocWithZone:(struct _NSZone *)zone{
     THViewModel *viewModel = [super allocWithZone:zone];
    @weakify(viewModel);
    [[viewModel rac_signalForSelector:@selector(init)]subscribeNext:^(RACTuple * _Nullable x) {
      @strongify(viewModel);
        [viewModel commit];
    }];
    return viewModel;
}
#pragma mark 配置
- (void)commit{
    _title = @"标题栏";
    _hidenNavigationBar     = NO;
    _navigationBarColor     = ColorFromHex(0xEDEDED);
    _navigationBarTextFont  = [UIFont systemFontOfSize:18];
    _navigationBarTextColor = [UIColor blackColor];
    _fd_interactivePopDisabled   = NO;
    _fetchDataWhenViewDidLoad    = YES;
    _fetchDataWhenViewWillAppear = YES;
    _needLogin = NO;
}


@end
